package com.brillilab.domain.po.kit;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 取用清单/待归还清单
 *
 * @author wmh
 */
@Data
@TableName(value="kit_usage")
public class KitUsage {

    /**
     * 列表ID
     */
    @TableId(type=IdType.AUTO)
    private Long id;
    /**
     * 常用清单组ID
     */
    private Long regularUsageGroupId;
    /**
     * 实验ID
     */
    private Long experimentId;

    /**
     * 实验名称
     */
    private String experimentName;

    //阶段Id
    private Long experimentPhaseId;
    //阶段序号
    private Integer experimentPhaseSort;
    //步骤Id
    private Long experimentStepId;
    //步骤序号
    private Integer experimentStepSort;
    //一级试剂类型Id
    private Long firstReagentTypeId;

    /**
     * 实验室ID
     */
    private Long labId;

    /**
     * 取用成员ID
     */
    private Long labMemberId;

    /**
     * 使用成员姓名
     */
    private String labMemberName;

    /**
     * kitID
     */
    private Long kitId;

    /**
     * reagentID
     */
    private Long reagentId;

    /**
     * reagent库存ID
     */
    private Long inventoryId;

    /**
     * reagent名称
     */
    private String reagentName;

    /**
     * 试剂类型 1-试剂，2-样品
     */
    private Integer classify;

    /**
     * 归还类型 1-归还，2-清空
     */
    private Integer returnType;

    /**
     * 取用量
     */
    private BigDecimal takeAmount;

    /**
     * 使用量
     */
    private BigDecimal useAmount;

    /**
     * 状态       1-未取用 2-未归还 3-已归还 删除为物理删除
     */
    private Integer state;

    /**
     * 取用时间
     */
    private Date usageTime;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    private Integer isTakeMiss;

    private Integer isReturnMiss;

    private Integer takeSuccess;

    private Integer returnSuccess;
}
